<div class="main device-info">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">内业>
      <span class="fs-theme-color">个人工作台</span>
      </span>
    </div>
  </div>
  <div class="main-content">
    <div class="search-info">
      <div class="container-header fs-16">
        <span>{{vm.workbenchStatus}}</span>
      </div>
      <form class="base-info" name="queryForm"
        ng-hide="vm.type == 1">
        <div class="base-info-item">
          <div class="pa-form-control">
            <label>主题：</label>
            <input type="text" class="pa-form-control-input"
              ng-model="vm.mapParams.deviceName">
          </div>
          <div class="pa-form-control">
            <label>类型选择：</label>
            <input type="text" class="pa-form-control-input"
              ng-model="vm.mapParams.code">
          </div>
          <div class="pa-form-control">
            <label>归档状态：</label>
            <input type="text" class="pa-form-control-input"
              ng-model="vm.mapParams.code">
          </div>
          <div class="pa-form-control">
            <label>进场时间：</label>
            <input type="text" class="pa-form-control-input date-picker"
              name="inTimeMin"
              data-ng-datepicker
              ng-model="vm.mapParams.inTimeMin">
            <label class="pa-form-zhi">至</label>
            <input type="text" class="pa-form-control-input date-picker"
              name="inTimeMax"
              data-ng-datepicker
              ng-model="vm.mapParams.inTimeMax">
          </div>
          <div class="pa-form-control-btn">
            <button class="pa-btn pa-sw-btn" type="button"
              ng-click="vm.$query(queryForm)">搜索</button>
            <button class="pa-btn pa-sw-btn reset-btn" type="reset"
              ng-click="vm.$reset()">重置</button>
          </div>
        </div>
      </form>
    </div>
    <pa-table>
      <table class="pa-table">
        <thead>
          <tr>
            <th class="sorting"
              ng-class="{'sorting-desc': vm.mapParams.sortType == 2, 'sorting-asc': vm.mapParams.sortType == 1}"
              ng-click="vm.$toggleOrder('number')">
              创建时间
            </th>
            <th>主题</th>
            <th>类型</th>
            <th ng-show="vm.type == 1 || vm.type == 2">上一环节提交时间</th>
            <th ng-show="vm.type == 2">当前步骤</th>
            <th ng-show="vm.type == 2">当前审批人</th>
            <th ng-show="vm.type == 3">完成时间</th>
            <th ng-show="vm.type == 3">归档状态</th>
            <th ng-show="vm.type == 1 || vm.type == 2">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in vm.equipListData">
            <td>{{item.code | date:"yyyy-MM-dd"}}</td>
            <td>{{item.deviceName}}</td>
            <td>{{item.catgegroy == 1 ? '一般设备' :
                  item.catgegroy == 2 ? '主要设备' :
                  item.catgegroy == 3 ? '关键设备' :
                  item.catgegroy == 4 ? '特种设备' : ''}}</td>
            <td>{{item.useLocationName}}</td>
            <td>
              <div class="operate-del"
                ng-show="vm.type == 3"
                ui-sref="deviceInfoDetail({id: item.id})">
                <i class="iconfont icon-middle icon-jilu3 detail-color fs-12"></i>
                <span>未归档</span>
              </div>
              <div class="operate-del"
                ng-show="vm.type == 1"
                ui-sref="editDeviceInfo({id: item.id})">
                <i class="iconfont icon-middle icon-xiugai1 edit-color fs-12"></i>
                <span>去办理</span>
              </div>
              <div class="operate-del"
                ng-show="vm.type == 2"
                ng-click="vm.$delete(item.id)">
                <i class="iconfont icon-middle icon-shanchu trash-color fs-12"></i>
                <span>详情</span>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </pa-table>
  </div>
</div>
